<?php
class Message extends Controller
{
	var $num_to_display = 6;
	var $user_id;


    function Message()
    {
	    parent::Controller();
	    $this->load->model('message_model', false , false, 'message');
	
        
    }
    
    function index()
    {
	    //Load in the files we'll need
	    $user_id = $this->session->userdata('user_id');
	    	$data['messages'] = $this->message_model->getUserMessageBrief($user_id, $this->num_to_display);
	    
		$data['page_title'] = $this->lang->line('menu_root_system');
	    $this->load->view('index', $data, false, 'message');
	    
    }

    function delete_message()
    {
	    echo 'test delete';	
		$data['page_title'] = $this->lang->line('menu_root_system');
		$this->load->view('message/index', $data);
    }

    function confirm_message()
    {

    }

    function edit()
    {

    }

    function add()
    {

    }

    function displayMsgMngr()
    {

    }
}

?> 

